package com.mdd.front.validate.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel("预授权记录创建参数")
public class PreAuthorizationRecordCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "orderId参数缺失")
    @ApiModelProperty(value = "订单编号")
    private Long orderId;

    @NotNull(message = "preAuthorizationNo参数缺失")
    @ApiModelProperty(value = "授权码")
    private String preAuthorizationNo;

    @NotNull(message = "preAuthorizationMeny参数缺失")
    @ApiModelProperty(value = "授权金额")
    private BigDecimal preAuthorizationMeny;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "状态;状态：1、授权中2、授权失效3、解除授权")
    private Long status;

}
